
CFLAGS = -Wall -pedantic  -O4
CC = g++
LDFLAGS= -Wl,-rpath
all:  HCLPSO

OBJECTS= ./CEC2010/Benchmarks.o ./CEC2010/F1.o ./CEC2010/F2.o ./CEC2010/F3.o ./CEC2010/F4.o ./CEC2010/F5.o ./CEC2010/F6.o ./CEC2010/F7.o ./CEC2010/F8.o ./CEC2010/F9.o ./CEC2010/F10.o\
./CEC2010/F11.o ./CEC2010/F12.o ./CEC2010/F13.o ./CEC2010/F14.o ./CEC2010/F15.o ./CEC2010/F16.o ./CEC2010/F17.o ./CEC2010/F18.o ./CEC2010/F19.o ./CEC2010/F20.o

INCLUDE=./CEC2010/Header.h  ./CEC2010/Benchmarks.h \
./CEC2010/F1.h ./CEC2010/F2.h ./CEC2010/F3.h ./CEC2010/F4.h ./CEC2010/F5.h ./CEC2010/F6.h ./CEC2010/F7.h ./CEC2010/F8.h ./CEC2010/F9.h ./CEC2010/F10.h\
./CEC2010/F11.h ./CEC2010/F12.h ./CEC2010/F13.h ./CEC2010/F14.h ./CEC2010/F15.h ./CEC2010/F16.h  ./CEC2010/F17.h  ./CEC2010/F18.h  ./CEC2010/F19.h  ./CEC2010/F20.h 



HCLPSO: HCLPSO.o $(OBJECTS) $(INCLUDE)
	$(CC) $(CFLAGS) -o HCLPSO HCLPSO.o $(OBJECTS)
HCLPSO.o: $(INCLUDE) HCLPSO.cpp
	$(CC) $(CFLAGS) -c HCLPSO.cpp


/CEC2010/Benchmarks.o:  ./CEC2010/Benchmarks.h ./CEC2010/Benchmarks.cpp
	$(CC) $(CXXFLAGS) -c ./CEC2010/Benchmarks.cpp

/CEC2010/F1.o: ./CEC2010/F1.h ./CEC2010/Benchmarks.h ./CEC2010/F1.cpp
	$(CC) $(CXXFLAGS) -c ./CEC2010/F1.cpp

/CEC2010/F2.o: ./CEC2010/F2.h ./CEC2010/Benchmarks.h ./CEC2010/F2.cpp
	$(CC) $(CXXFLAGS) -c ./CEC2010/F2.cpp

/CEC2010/F3.o: ./CEC2010/F3.h ./CEC2010/Benchmarks.h ./CEC2010/F3.cpp
	$(CC) $(CXXFLAGS) -c ./CEC2010/F3.cpp

/CEC2010/F4.o: ./CEC2010/F4.h ./CEC2010/Benchmarks.h ./CEC2010/F4.cpp
	$(CC) $(CXXFLAGS) -c ./CEC2010/F4.cpp

/CEC2010/F5.o: ./CEC2010/F5.h ./CEC2010/Benchmarks.h ./CEC2010/F5.cpp
	$(CC) $(CXXFLAGS) -c ./CEC2010/F5.cpp

/CEC2010/F6.o: ./CEC2010/F6.h ./CEC2010/Benchmarks.h ./CEC2010/F6.cpp
	$(CC) $(CXXFLAGS) -c ./CEC2010/F6.cpp

/CEC2010/F7.o: ./CEC2010/F7.h ./CEC2010/Benchmarks.h ./CEC2010/F7.cpp
	$(CC) $(CXXFLAGS) -c ./CEC2010/F7.cpp

/CEC2010/F8.o: ./CEC2010/F8.h ./CEC2010/Benchmarks.h ./CEC2010/F8.cpp
	$(CC) $(CXXFLAGS) -c ./CEC2010/F8.cpp

/CEC2010/F9.o: ./CEC2010/F9.h ./CEC2010/Benchmarks.h ./CEC2010/F9.cpp
	$(CC) $(CXXFLAGS) -c ./CEC2010/F9.cpp

/CEC2010/F10.o: ./CEC2010/F10.h ./CEC2010/Benchmarks.h ./CEC2010/F10.cpp
	$(CC) $(CXXFLAGS) -c ./CEC2010/F10.cpp

/CEC2010/F11.o: ./CEC2010/F11.h ./CEC2010/Benchmarks.h ./CEC2010/F11.cpp
	$(CC) $(CXXFLAGS) -c ./CEC2010/F11.cpp

/CEC2010/F12.o: ./CEC2010/F12.h ./CEC2010/Benchmarks.h ./CEC2010/F12.cpp
	$(CC) $(CXXFLAGS) -c ./CEC2010/F12.cpp

/CEC2010/F13.o: ./CEC2010/F13.h ./CEC2010/Benchmarks.h ./CEC2010/F13.cpp
	$(CC) $(CXXFLAGS) -c ./CEC2010/F13.cpp

/CEC2010/F14.o: ./CEC2010/F14.h ./CEC2010/Benchmarks.h ./CEC2010/F14.cpp
	$(CC) $(CXXFLAGS) -c ./CEC2010/F14.cpp

/CEC2010/F15.o: ./CEC2010/F15.h ./CEC2010/Benchmarks.h ./CEC2010/F15.cpp
	$(CC) $(CXXFLAGS) -c F15.cpp

/CEC2010/F16.o: ./CEC2010/F16.h ./CEC2010/Benchmarks.h ./CEC2010/F16.cpp
	$(CC) $(CXXFLAGS) -c F16.cpp

/CEC2010/F17.o: ./CEC2010/F17.h ./CEC2010/Benchmarks.h ./CEC2010/F17.cpp
	$(CC) $(CXXFLAGS) -c F17.cpp

/CEC2010/F18.o: ./CEC2010/F18.h ./CEC2010/Benchmarks.h ./CEC2010/F18.cpp
	$(CC) $(CXXFLAGS) -c F18.cpp

/CEC2010/F19.o: ./CEC2010/F19.h ./CEC2010/Benchmarks.h ./CEC2010/F19.cpp
	$(CC) $(CXXFLAGS) -c F19.cpp

/CEC2010/F20.o: ./CEC2010/F20.h ./CEC2010/Benchmarks.h ./CEC2010/F20.cpp
	$(CC) $(CXXFLAGS) -c F20.cpp


.PHONY : clean clrout
clean:
	rm -f  $(OBJECTS)
	rm -f  *.o


clrout:
	rm -fr result trace out outout
